import 'package:flutter/material.dart';
import 'package:flutter_chat_ui/pages/txh_about_school_goods/widgets/login_titles_widget.dart';
import 'package:flutter_chat_ui/utils/x_load_image.dart';
import 'package:get/get.dart';

/* 
 * 登录界面
 */
class LoginPage extends StatelessWidget {
  const LoginPage({
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          /// 返回
          Padding(
            padding: const EdgeInsets.only(left: 16, top: 56),
            child: Align(
              alignment: Alignment.centerLeft,
              child: IconButton(
                onPressed: () => Get.back(),
                icon: XAssetsImage.load(
                  "nav_back",
                  size: const Size(44, 32),
                ),
              ),
            ),
          ),

          /// titles
          const Padding(
            padding: EdgeInsets.only(top: 27, left: 30),
            child: LoginTitlesWidget(),
          ),

          /// 输入框
        ],
      ),
    );
  }
}
